package com.my.commonlib.net.okgo;

import com.lzy.okgo.callback.AbsCallback;

import okhttp3.Response;


public abstract class ByteBaseCallback extends AbsCallback<byte[]> {

    @Override
    public byte[] convertSuccess(Response response) throws Exception {
        byte[] bytes = response.body().bytes();
        response.close();
        return bytes;
    }
}
